#pragma once
#ifndef HISTOGRAM_H
#define HISTOGRAM_H
#include "BasicHistogram.h"
#include "../../gui/BasicHistogramGUI/BasicHistogramGUI.h"
#include "../adapters/qwt/Histogram/qwtHistogram.h"
#include "../../gui/PlotWindow/PlotWindow.h"
namespace LightChart {
class Histogram : public BasicHistogram, public BasicHistogramGUI {
public:
    Histogram(QWidget * parent);
    virtual void draw();
    virtual void showOptions();
protected:
    void restoreGlobalSettings();
private:
    friend class boost::serialization::access;
    template<class Archive> void serialize(Archive & ar, const unsigned int version);
};
template<class Archive> inline void Histogram::serialize(Archive & ar, const unsigned int) {
    ar & boost::serialization::base_object<BasicHistogram>(*this);
}
}
namespace boost {
namespace serialization {
template<class Archive>
inline void load_construct_data(Archive &, LightChart::Histogram * t, const unsigned int) {
    ::new(t)LightChart::Histogram(0); // shouldnt leak :o
}
}
}
#if BOOST_VERSION > 104200
#else
BOOST_CLASS_EXPORT(LightChart::Histogram)
#endif
#endif // HISTOGRAM_H
